import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router/index'
import NavVue from '@/components/nav/nav'
import store from '@/store'
import '@/mock/mock'
import 'swiper/css/swiper.css'
import Banner from '@/components/banner'

Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.component(NavVue.name,NavVue)
Vue.component(Banner.name,Banner)

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
  },
}).$mount('#app')

